fix panic after xenoprof shutdown as follows.
(XEN) Xen BUG at mm.c:1265
(XEN) FIXME: implement ia64 dump_execution_state()
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Xen BUG at mm.c:1265
(XEN) ***************************************
The c/s 14624:
64ab7d443549 changed the p2m table semantics so that
xenoprof_shared_gmfn() also needs catch it up.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
/* To be implemented */
return;
}
-#define xenoprof_shared_gmfn(d, gmaddr, maddr) \
- assign_domain_page((d), (gmaddr), (maddr));
+#define xenoprof_shared_gmfn(d, gmaddr, maddr) \
+do { \
+ unsigned long ret; \
+ ret = create_grant_host_mapping((gmaddr), \
+ (maddr) >> PAGE_SHIFT, 0, 0); \
+ BUG_ON(ret != GNTST_okay); \
+} while (0)
static inline int
ring(const struct pt_regs* regs)